#!/usr/bin/env node

const log = console.log;
let me = {};
const msg = ['name','email','qq','mobile'];
const stdin = process.stdin;
const stdout = process.stdout;
let i = 0;

stdout.write(msg[i] + ':');
stdin.on('data',(data)=>{
  me[msg[i++]] = data.toString('utf8');
  if(i === 3){
      log(me);
      process.exit();
  }

  stdout.write(msg[i] + ':');
});
stdin.on('end',()=>{
  log('bye');
});
